package face.pay.entity;

/**
 * @Auther: zkj
 * @Date: 2019/7/29 17:20
 * @Description:
 */
public class OrderInfo {

    private Long id;

    private Integer oemId;

    /**
     * 商户 登录用户ID
     */
    private Integer userId;

    /**
     * 门店ID
     */
    private Integer storeId;

    /**
     * 设备id
     */
    private Integer terminalId;

    private String sn;

    /**
     * 交易金额
     */
    private Long totalFee;

    /**
     * 实收金额
     */
    private Long actFee ;

    /**
     * 实际应到 账金额  = 实收金额- serviceFee
     */
    private Long actInnerFee;


    /**
     * 服务费
     */
    private Long serviceFee ;


    /**
     * 折扣或者优惠金额
     */
    private Long discountMoney;

    /**
     * 结算费率
     */
    private Double rate;

    /**
     * 补贴金额
     */
    private Long  subsidyMoney;

    /**
     * WECHAT
     * ALIPAY
     * 第三方 face自定义编码
     */
    private String channelCode;

    /**
     * WECHAT
     * ALIPAY
     */
    private String type;


    /**
     * FACE
     * SQR
     */
    private String payType;


    /**
     * 支付用户标识
     *  openid 支付宝用户标识
     *  或其他渠道用户标识
     */
    private String payUserSign;

    /**
     * 支付订单号
     */
    private String tradeNo;

    /**
     * 支付凭证
     * 1.微信是authCode
     */
    private String payCode;

    /**
     * 订单支付状态
     */
    private Integer status;

    /**
     *分润标记
     * 0 未分润
     * 1  成功
     * -1 订单不需要分润
     */
    private Integer profitSign;


    /**
     *   0 未回调
     *   1 已回调
     *  -1 回调失败
     */
    private Integer callBackStatus;

    /**
     * 是否分账
     * 0  未分账
     * 1  已经分账
     * -1 分账失败
     * -2 调用完结账单失败
     */
    private Integer sharing;

    /**
     * 分账订单号
     */
    private String sharingNo;

    private String sharingMessage;
    /**
     *核销优惠券Id
     */
    private Long  cardDetailId;


    /**
     * 备注 状态描述
     */
    private  String message;

    private  String ip;

    /**
     * 支付场景
     * 0 设备下单
     * 1 网页扫码支付
     */
    private  Integer scene ;

    private  String  createdTime;

    private  Integer createdBy;

    private  String  updatedTime;

    private Integer updatedBy;

    /**
     *设备登录编号 非数据库字段
     */
    private  String device_id;

    private  String subMchId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getOemId() {
        return oemId;
    }

    public void setOemId(Integer oemId) {
        this.oemId = oemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }


    public Long getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(Long totalFee) {
        this.totalFee = totalFee;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Integer updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getProfitSign() {
        return profitSign;
    }

    public void setProfitSign(Integer profitSign) {
        this.profitSign = profitSign;
    }

    public String getPayUserSign() {
        return payUserSign;
    }

    public void setPayUserSign(String payUserSign) {
        this.payUserSign = payUserSign;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    public Long getSubsidyMoney() {
        return subsidyMoney;
    }

    public void setSubsidyMoney(Long subsidyMoney) {
        this.subsidyMoney = subsidyMoney;
    }

    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }


    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }


    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }


    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public Integer getCallBackStatus() {
        return callBackStatus;
    }

    public void setCallBackStatus(Integer callBackStatus) {
        this.callBackStatus = callBackStatus;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getActFee() {
        return actFee;
    }

    public void setActFee(Long actFee) {
        this.actFee = actFee;
    }

    public Long getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(Long serviceFee) {
        this.serviceFee = serviceFee;
    }

    public Long getActInnerFee() {
        return actInnerFee;
    }

    public void setActInnerFee(Long actInnerFee) {
        this.actInnerFee = actInnerFee;
    }

    public Integer getScene() {
        return scene;
    }

    public void setScene(Integer scene) {
        this.scene = scene;
    }

    public Integer getSharing() {
        return sharing;
    }

    public void setSharing(Integer sharing) {
        this.sharing = sharing;
    }

    public Long getCardDetailId() {
        return cardDetailId;
    }

    public void setCardDetailId(Long cardDetailId) {
        this.cardDetailId = cardDetailId;
    }

    public String getSubMchId() {
        return subMchId;
    }

    public void setSubMchId(String subMchId) {
        this.subMchId = subMchId;
    }

    public String getSharingNo() {
        return sharingNo;
    }

    public void setSharingNo(String sharingNo) {
        this.sharingNo = sharingNo;
    }

    public String getSharingMessage() {
        return sharingMessage;
    }

    public void setSharingMessage(String sharingMessage) {
        this.sharingMessage = sharingMessage;
    }

    public Long getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(Long discountMoney) {
        this.discountMoney = discountMoney;
    }
}
